﻿<UserControl x:Class="DACU.UserControls.UserProfile"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="315" d:DesignWidth="434">
    <Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<StackPanel Grid.Column="1">
			<DockPanel>
				<Ellipse Height="15" Width="15" Stroke="Gray" Fill="{Binding IsOnline, Converter={StaticResource ResourceKey=BoolColor}}" DockPanel.Dock="Right" VerticalAlignment="Top" HorizontalAlignment="Center" Visibility="{Binding IsOnline,Converter={StaticResource BooleanToVisibilityConverter}}" />
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
					<TextBlock Name="tbFirstName" Text="{Binding FirstName}" x:FieldModifier="private" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" />
					<TextBlock Name="tbNickName" Text="{Binding NickName}" x:FieldModifier="private" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" />
					<TextBlock Name="tbLastName" Text="{Binding LastName}" x:FieldModifier="private" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5" />
				</StackPanel>
			</DockPanel>
			<StackPanel Orientation="Horizontal">
				<TextBlock Margin="0,0,5,0" Text="Rate" />
				<TextBlock Name="tbRate" Text="{Binding Rate,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<TextBlock Text="Sex" Margin="0,0,5,0" />
				<TextBlock Name="tbSex" Text="{Binding Sex,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
			</StackPanel>
			<StackPanel Orientation="Horizontal">
				<TextBlock Text="Birth Date" Margin="0,0,5,0" />
				<TextBlock Name="tbBirthDate" Text="{Binding BirthDate,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
			</StackPanel>
			<Expander Header="Phones" Name="ePhones">
				<StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="Home" />
						<TextBlock Name="tbHomePhone" Text="{Binding HomePhone,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="Mobile" />
						<TextBlock Name="tbMobilePhone" Text="{Binding MobilePhone,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
				</StackPanel>
			</Expander>
			<Expander Header="Address" Name="eAddress">
				<StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="City" />
						<TextBlock Name="tbCityId" Text="{Binding CityId,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="Country" />
						<TextBlock Name="tbCountryId" Text="{Binding CountryId,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
				</StackPanel>
			</Expander>
			<Expander Header="Education" Name="eEducation" x:FieldModifier="private">
				<StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="University" />
						<TextBlock Name="tbUniversityName" Text="{Binding UniversityName,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="Faculty" />
						<TextBlock Name="tbFacultyName" Text="{Binding FacultyName,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0" Text="Graduation" />
						<TextBlock Name="tbGraduation" Text="{Binding Graduation,Converter={StaticResource Empty_NA}}" x:FieldModifier="private" />
					</StackPanel>
				</StackPanel>
			</Expander>
		</StackPanel>
		<Image Name="iPhoto" Stretch="Uniform" Source="{Binding PhotoUrl,Converter={StaticResource UriToBitmap}}" />
	</Grid>
</UserControl>
